import {createRouter, createWebHashHistory} from 'vue-router'
import Chat from "@/views/chat/index.vue";
// 路由 => 路径和组件之间的对应关系
const routes = [
  {
    path: '/',
    component: Chat
  }
]

const router = createRouter({ 
  history: createWebHashHistory(), // 路径格式
  routes: routes // 路由数组
})

export default router